import Vue from 'vue'
import VueRouter from 'vue-router'

Vue.use(VueRouter)



import GeneralStat from "views/stat/general/GeneralStat.vue"
import OpsManager from "views/ops/opsManager/OpsManager.vue"
//
import VideoDownLoad from "views/videoDownLoad/VieoDownLoad.vue"
import ContactManager from "views/contactManager/contactManager.vue"
// //运维报表
import GeneralStatHistory from "views/stat/general/GeneralStat.vue"
import VideoDiagnosisStatHistory from "views/stat/ops/VideoDiagnosisStatHistory.vue"
import VideoTrapIntegrityRateStatHistory from "views/stat/ops/VideoTrapIntegrityRateStatHistory.vue"
import DeviceOnlineStatHistory from "views/stat/ops/DeviceOnlineStatHistory.vue"

// 环境检测统计
import RoomEnvExceptionStat from "views/stat/env/RoomEnvExceptionStat.vue"
import RoomEnergyConsumptionnStat from "views/stat/env/RoomEnergyConsumptionnStat.vue"

// //告警统计
import AlarmTypeStat from "views/stat/alarm/AlarmTypeStat.vue"
import AlarmLevelStat from "views/stat/alarm/AlarmLevelStat.vue"
import AlarmHistory from "views/stat/alarm/AlarmHistory.vue"

// //日志管理
import UserLoginLog from "views/log/user/UserLoginLog.vue"
import UserOperationLog from "views/log/user/UserOperationLog.vue"

// //配置管理
import UserManager from "views/user/UserManager.vue"
import BranchManager from "views/brach/BranchManager.vue"
import RoleManager from "views/role/RoleManager.vue"
import RoomManager from "views/ops/RoomManager.vue"
import EnvMonitorManager from "views/ops/EnvMonitorManager.vue"
import VideoDeviceManager from "views/ops/VideoDeviceManager.vue"
import TerminalManager from "views/ops/TerminalManager.vue"
import SmsManager from "views/sms/SMSManager.vue"
import InterfaceGatewayManager from "views/ops/InterfaceGateWayManager.vue"

const routes = [{
    path: '/stat/general',
    component: GeneralStat
  },
  {
    path: '/ops/table',
    component: OpsManager
  },
  {
    path: '/video/downLoad',
    component: VideoDownLoad
  },
  {
    path: '/contact/manager',
    component: ContactManager
  },
  //报表
  //运维统计
  {
    path: '/stat/general/history',
    component: GeneralStatHistory
  }, {
    path: '/stat/video/diagnosis',
    component: VideoDiagnosisStatHistory
  },
  {
    path: '/stat/videoTrap/integrityRate',
    component: VideoTrapIntegrityRateStatHistory
  },
  {
    path: '/stat/deviceOnline',
    component: DeviceOnlineStatHistory
  },
  //环境统计
  {
    path: '/stat/room/env/exception',
    component: RoomEnvExceptionStat
  },
  {
    path: '/stat/room/energyConsumptionn',
    component: RoomEnergyConsumptionnStat
  },
  //告警统计
  {
    path: '/stat/alarm/type',
    component: AlarmTypeStat
  },
  {
    path: '/stat/alarm/level',
    component: AlarmLevelStat
  },
  {
    path: '/stat/alarm/history',
    component: AlarmHistory
  },
  //日志报表
  {
    path: '/log/login',
    component: UserLoginLog
  },
  {
    path: '/log/operation',
    component: UserOperationLog
  },
  // //配置管理
  {
    path: '/user/manager',
    component: UserManager
  },
  {
    path: '/branch/manager',
    component: BranchManager
  },
  {
    path: '/role/manager',
    component: RoleManager
  },
  {
     path: '/room/manager',
     component: RoomManager
  },
  {
    path: '/envMonitor/manager',
    component: EnvMonitorManager
  },
  {
    path: '/device/video/manager',
    component: VideoDeviceManager
  },
  {
    path: '/terminal/manager',
    component: TerminalManager
  },
  {
    path: '/sms/manager',
    component: SmsManager
  },
  {
    path: '/interfaceGateWay/manager',
    component: InterfaceGatewayManager
  }
]
export default new VueRouter({
  routes,
  mode: 'history'
})
